package com.example.springweb.mapper;


import com.example.springweb.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
//    @Select("select * from Login.login_user where user=#{user.user} AND password=#{user.password}")
//    List<User> trylogin(@Param("user")User user);
    List<User> trylogin(User user);


//    @Insert("insert into Login.login_user(user,password) values(#{user.user},#{user.password})")
    Long register(User user);

    List<User> detectuserexidts(User user);

}
